﻿/*!
* Created by Kroplet (https://www.kroplet.com) 
* The easiest way to create Bootstrap 4 themes. 
*/

/*****************
Custom CSS
*****************/
.of-hidden {
    overflow-x: hidden !important; /*fixes diamond overflow on x-axis*/ 
}

.small-xl {
    font-size: 90%;
}

p a {
    box-shadow: inset 0 -3px 0 0 $primary;
    transition: all .25s ease-out;

    &:hover {
        box-shadow: inset 0 -14px 0 0 $secondary;
        transition: all .25s ease-out;
    }
}

.img-download {
    width: 230px;
    max-width: 100%;
    transition: all .25s ease-out; 

    &:hover {
        transform: scale(1.05);
    }
}

.grow {
    transition: all .25s ease-out;
    
    &:hover {
        transform: scale(1.05);
    }
}

/*Buttons */
.btn {
    &:active, &:focus {
        box-shadow: none !important;
    }

    &:not(.btn-link):hover, &:not(.btn-link):focus, &:not(.btn-link):active {
            transform: scale(1.05);
    }

}

/*Navbar*/
.nav {
    .nav-link {
        font-size: 14px;
    }
}

/*vertical heights */
.vh-100 {
    height: 100vh;
}

@media (min-width:576px){
    .vh-sm-100{
        height: 100vh;
    }
}

@media (min-width:768px){
    .vh-md-100{
        height: 100vh;
    }
}

.bg-hero {
    h1 {
        font-weight: 500;
        font-size: 3.5rem;
    }
}

/*Diamonds*/
.diamond {
    width: 35rem;
    height:35rem;
    background: $primary;
    transform: rotate(45deg);
    position: relative;
    z-index: -20;
    transition: all .25s ease-out;
    
    &.text {
        z-index: 0;

        .inner-body {
            transform: rotate(0deg);
        }
    }

    &.fixed {
        position: absolute;
        top: 5rem;
    }

    &.fixed-sm {
        position: absolute;
        top: 25rem;
    }

    &.right {
        right: -20rem;
    }
    
    &.left {
        left: -20rem;
    }

    &.circle {
        border-radius: 50%;
        z-index: 0;

        &:hover {
            border-radius: 0px;
        }

    }

    &.circle-alt {
        border-radius: 50%;
        transform: rotate(0deg);
        z-index: 20;

        &:hover {
            border-radius: 0px;
            transform: rotate(-45deg);
        }
    }

    &.totate:hover{
        transform: rotate(0deg);
    }

    &.diamond-lg {
        width: 50rem;
        height: 50rem;

        &.right {
            right: -35rem;
        }
        
        &.left {
            left: -35rem;
        }
    }

    &.diamond-sm {
        width: 20rem;
        height: 20rem;

        &.right {
            right: -30rem;
        }
        
        &.left {
            left: -30rem;
        }
    }

    &.diamond-xs {
        width: 10rem;
        height: 10rem;

        &.right {
            right: -19rem;
        }
        
        &.left {
            left: -19rem;
        }
    }

}

/*nav-pills */
.nav-pills .nav-link {
    font-weight: $font-weight-bold;
    
    &:not(.active):hover {
        background-color: $light;
    }
}

/*Pricing tables*/
.pricing-table {
    .pricing-list{

        li {
            margin-bottom: 2rem;
            margin-top: 2rem;
        }
    }

    .card {
        margin-top: 2rem;
        border: 3px solid $info;
        transition: all .25s ease-out;

        hr {
            border-top: 2px solid $info;
        }

        .h1 {
            font-size: 6rem;
            font-weight: 500;
            color: $info;
        }

        &:hover {
            transform: scale(1.05);
        }
    }
}


/*footer*/
footer {
    @media (max-width: 768px) {
        background-color: $dark;
    }
    
    ul > li {
        margin-bottom: 0.7rem;
    }

    a {
        color: $gray-300;
        text-decoration: none;

        &:hover {
            color: rgba($white, 0.9);
            text-decoration: none;
            transition: all 0.2s ease-in-out;
        }
    }

    @media (min-width: 768px) {
        .diamond-footer {
            transition: all .25s ease-out;
            
            &:after {
                width: 35rem;
                height: 35rem;
                content: "";
                display: block;
                background: $black;
                -webkit-transform: rotate(45deg);
                transform: rotate(45deg);
                margin: auto;
                top: -12rem;
                position: absolute;
                z-index: -20;
                transition: all .25s ease-out;
                left: -2rem;
            }
        }

        &:hover {
            .diamond-footer {
                transform: scale(1.05);
                transition: all .25s ease-out;
            }
        }
    }
}


/*social icons*/
.social {
    a {
        width: 45px;
        height: 45px;
        background: rgba($white, 0.1);
        display: block;
        text-align: center;
        color: $white;
        border-radius: $border-radius;
        font-size: 18px;
        line-height: 45px;
        transform: rotate(0deg);

        &:hover {
            transform: rotate(45deg);
            background: $primary;
            border-radius: 0px !important;
            transition: all .4s ease-in-out;
        }
    }

    &.social-sm a {
        width: 35px;
        height: 35px;
        font-size: 16px;
        line-height: 35px; 
    }

    &.social-rounded a {
       border-radius: 50%;
    }

    &.social-white a {
        background: $white;
        color: rgba($body-color, 0.7);

        &:hover {
            color: $primary;
        }
    }
 
    &.social-white-alt a {
        background: $white;
        color: rgba($body-color, 0.7);

        &:hover {
            background: $primary;
            color: $white;
        }
    }
}

/*scroll to top */
.scroll-top {
    bottom: 20px;
    font-size: 20px;
    height: 40px;
    position: fixed;
    text-align: center;
    width: 40px;
    z-index: 10;
    cursor: pointer;
    transition: .3s;
    border-radius: 50%;
    line-height: 40px;
    right: -100px;
    color: $white;
    background-color: rgba($primary, .5);
    
    &:hover {
        background-color: rgba($primary, 1);
        transform: scale(1.05);
        transition: all .4s ease-in-out;
    }

    &.active {
        right: 20px; 
    }
}

/* Icon Boxes */
.icon-box {
    position: relative;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    background-color: $light;
    transform: rotate(0deg);
    margin: 1rem;
    transition: all .25s ease-in-out;

    &:hover {
        transform: rotate(45deg);
        border-radius: 0px;
        transition: all .25s ease-in-out;
    }

    .icon-box-inner {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 3.25rem;
        
        &.small {
            padding: 1.25rem;
        }

        &.small-xs {
            padding: 1rem;
        }
    }
}

/*all themes colors*/
.bg-black {
    background-color: $black;
}
.bg-blue {
    background-color: $blue;
}
.bg-indigo {
    background-color: $indigo;
}
.bg-purple {
    background-color: $purple;
}
.bg-pink {
    background-color: $pink;
}
.bg-red {
    background-color: $red;
}
.bg-orange {
    background-color: $orange;
}
.bg-yellow {
    background-color: $yellow;
}
.bg-green {
    background-color: $green;
}
.bg-teal {
    background-color: $teal;
}
.bg-cyan {
    background-color: $cyan;
}

/*theme switcher*/
.switcher-wrap {
    position: fixed;
    top: 250px;
    width: 250px;
    background: $white;
    color: $body-color;
    z-index: 100;
    padding: 20px;
    left: -250px;
    transition: .3s;

    &.active {
        left: 0; 
    }

    ul {
        margin: 0;
        padding: 0;
        list-style: none; 

        li {
            margin-bottom: .5rem;

            a {
                color: $body-color;

                &:hover {
                    color: $primary;
                }
            }
        }
    }

    .color-switcher ul li {
        width: 28px;
        height: 28px;
        float: left;
        margin: 3px;
        margin-bottom: 10px;
        cursor: pointer;
        transition: .3s; 

        &.active {
            border: 3px solid $light; 
        }
    }

    .switcher-trigger {
        position: absolute;
        left: 100%;
        width: 40px;
        height: 40px;
        background: $white;
        top: 0;
        font-size: 20px;
        text-align: center;
        color: rgba($primary, 0.5);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0 2px 2px 0;

        &:hover {
            color: $primary;
            transform: scale(1.05);
        } 
    }
}

@media screen and (max-width: 768px) {
    .switcher-wrap {
        display: none; 
    } 
}
